package models

import (
	_ "github.com/go-sql-driver/mysql"
	"time"
)

type MqttUser struct {
	Id          int
	Username    string `orm:"unique"`
	Password    string
	Salt        string
	IsSuperuser int
	Created     time.Time `orm:"auto_now_add;type(datetime)" `
}

type MqAccountInfo struct {
	Host     string
	Port     int
	UseSsl   bool
	Username string
	Password string
}

type MqttAcl struct {
	Id       int
	Allow    int
	IpAddr   string
	Username string
	Clientid string
	Access   int
	Topic    string
}


